//首页
function menu_home()
{
	//载入分类
	$sort.data = null;
	$sort.display();
	
	//载入内容
	$article.get_list();
	
	location.href = "#";
}

//程序退出
function menu_exit()
{
	nativeWindow.close();
}

//搜索
function menu_search()
{
	if($("#search").toggle().is(":visible"))
	{
		$("#search :text").focus();
	}
}

//复制
function menu_copy()
{
	air.NativeApplication.nativeApplication.copy();
}

//关于
function menu_about()
{
	window.open("about.html", "window_about", "width=400, height=300");
}

//在线更新菜单
var $window_update = null;
function menu_update()
{
	if($window_update)
	{
		alert("正在更新中");
	}
	else
	{
		$window_update = window.open("update.html", "window_update", "width=600, height=248");
	}
	
}
